const Joi = require("joi");

module.exports = () => {
  let operations = {
    GET,
  };

  function GET(req, res, next) {
    next();
  }

  GET.apiDoc = {
    summary: "获取所有用户信息",
    tags: ["users"],
    operationId: "getUsers",
    parameters: [
      {
        in: "query",
        name: "username",
        type: "string",
        description: "user to add to the system",
      },
    ],
    responses: {
      200: {
        description: "Created",
      },
      default: {
        description: "An error occurred",
      },
    },
  };

  return operations;
};
